<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page language="java" import="com.bluesky.dreamer.entity.FrontUser"%>
<%
String path = request.getContextPath();
FrontUser user=(FrontUser)session.getAttribute("loginUser");
if(user==null){
	out.print("<script language='javascript'>"); 
	out.print("alert('请先登陆!');"); 
	out.print("window.top.location='http://localhost/bluesky/'");
	out.print("</script>"); 
}
String chargename=""; //资费处理名称
String packagefee=request.getParameter("packagefee"); //套餐费
String packselectedId=request.getParameter("packselectedId"); //套餐选择的id
String numfee=request.getParameter("numfee"); //选号费
String phonenum=request.getParameter("phonenum"); //手机号
String chargeType=request.getParameter("chargeType"); //资费处理方式
if("0".equals(chargeType)){
	chargename="套餐包外资费";
}else if("1".equals(chargeType)){
	chargename="全月套餐";
}else if("2".equals(chargeType)){
	chargename="套餐减半";
}
String packname=request.getParameter("packname"); //套餐名称
packname = java.net.URLDecoder.decode(packname,"utf-8"); 
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  	<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>澳海通网上营业厅</title>
	<link type="text/css" href="../nresources/common/css/default.css" rel="stylesheet" />
	<link type="text/css" href="../nresources/common/css/agent.css" rel="stylesheet" />
	
	<script src="<%=path %>/common/My97DatePicker/WdatePicker.js" type="text/javascript" language="javascript"></script>
	<script type="text/javascript" language="javascript" src="../njs/jquery-1.3.2.min.js"></script>
	<script type="text/javascript" charset="gb2312" language="javascript" src="../njs/front/order_confirm.js"></script>
	</head>
 <body>
 <div class="main-frame">
	<!--header start -->
	<div class="header">
		<div class="top">
			<div class="main-part">
			<%if(user!=null){out.print("您好,<span class='font-bold font-orange'>"+user.getShowname()+"</span> 用户,<b>澳海通</b>欢迎你!");} %>
			 <a href="../index.jsp" class="icon-home">首页</a> 
			 <a href="#" class="icon-about-us">关于我们</a> 
			</div>
		</div>
		<div class="nav">
			<!-- <div class="sub-nav"> <a href="#" title="个人服务"></a> <a href="#" title="商户服务"></a> </div> -->
			<span class="adorn"></span> 
			<ul>
				<li class="on"><a href="../index.jsp">首页</a></li>
				<li><a href="#">Wo-3G专区</a></li>
				<li><a href="#">我的订单</a></li>
			</ul>
		</div>
		<div class="hot-panel"> 
			<span class="font-bold font-orange">数字靓号：</span> 
				<a href="#">520(我爱你)</a> 
				<a href="#">2013(爱你一生) </a> 
				<a href="#">8983(不见不散) </a> 
				<a href="#">1920(永久爱你) </a> 
		</div>
	</div>
	<!--header end -->
	<!--container start -->
	<div class="container">
		<!--side-col start -->
		<div class="side-col">
			<h1 class="common-caption-3"> 澳海通增值服务 </h1>
			<div class="common-content" style="height:529px;">
				<div class="menu">
					<!-- <h2><span></span>基本管理</h2>
					<ul>
						<li class="on"><a href="#">资料修改</a></li>
						<li class="last"><a href="#">登录密码修改</a></li>
					</ul> -->
					<h2><span></span>账户管理</h2>
					<ul>
						<li><a href="#">账户开户</a></li>
						<li><a href="#">账户止户</a></li>
						<li class="last"><a href="#">账户密码修改</a></li>
					</ul>
					<h2><span></span>帐务管理</h2>
					<ul>
						<li><a href="#">账户充值</a></li>
						<li><a href="#">账户余额查询</a></li>
						<li><a href="#">充值交易查询</a></li>
						<li class="last"><a href="#">消费交易查询</a></li>
					</ul>
				</div>
			</div>
		</div>
		<!--side-col end -->
		<!--main-col start -->
		<div class="center-col">
			<!--account start -->
				<div class="account">
					<div class="main-part">
						<div class="form-panel">
						   <form action="front!order_save.do" method="post" id="order_save_form_id">
							<table width="100%" border="0">
								<tr>
									<th scope="row">您选择的号码：</th>
									<td>
										<span class="font-bold font-orange"><%=phonenum %></span>
										<input type="hidden" name="orderPhonenum" value="<%=phonenum %>">
									</td>
								</tr>
								<tr>
									<th scope="row"> 选号费：</th>
									<td>
										<span class="font-bold font-orange"><%=numfee %>(元) </span>
										<input type="hidden" name="orderPackfee" id="orderPackfeeId" value="<%=packagefee %>">
										<input type="hidden" name="orderNumfee" id="orderNumfeeId" value="<%=numfee %>">
										<input type="hidden" name="orderTotalfee" id="orderTotalfeeId">
									</td>
								</tr>
								<tr>
									<th scope="row"> 选择的套餐名称：</th>
									<td>
										<span class="font-bold font-orange"><%=packname %> </span>
										<input type="hidden" name="orderPackname" value="<%=packname %>">
										<input type="hidden" name="orderPackId" value="<%=packselectedId %>">
									</td>
								</tr>
								<tr>
									<th scope="row"> 首月资费方式：</th>
									<td>
										<span class="font-bold font-orange"><%=chargename %> </span>
										<input type="hidden" name="orderChargename" value="<%=chargename %>">
									</td>
								</tr>
								<tr>
									<th scope="row">客户姓名：</th>
									<td><input type="text" name="custname" id="custId" class="text-style-3"  style="width:200px;"/><span class="font-orange">***</span></td>
								</tr>
								<tr>
									<th scope="row">证件类型：</th>
									<td><select name="identityType">
											<option value="">请选择证件类型</option>
											<option value="0">二代身份证</option>
										</select><span class="font-orange">***</span>
									</td>
								</tr>
								<tr>
									<th scope="row">证件号码：</th>
									<td><input type="text" name="identityNum" id="identityNumId" class="text-style-3"  style="width:200px;"/><span class="font-orange">***</span></td>
								</tr>
								<tr>
									<th scope="row">有效期：</th>
									<td>
									<input type="text" name="idvalidTime" value="" onclick="WdatePicker({skin:'whyGreen',dateFmt:'yyyyMMdd'})"/>
									<span class="font-orange">***</span></td>
								</tr>
								<tr>
									<th scope="row">证件地址：</th>
									<td>
										<input type="text" name="idaddr" id="idaddrId" class="text-style-3"  style="width:200px;"/>
										<span class="font-orange">***</span>
									</td>
								</tr>
								<tr>
									<th scope="row">联系电话：</th>
									<td>
										<input type="text" name="contactNum" id="contactNumId" class="text-style-3"  style="width:200px;"/>
										<span class="font-orange">***</span></td>
								</tr>
								<tr>
									<th scope="row">联系地址：</th>
									<td><input type="text" name="contactAddr" class="text-style-3"  style="width:200px;"/><span class="font-orange">***</span></td>
								</tr>
								<tr>
									<th scope="row">联系地址编码：</th>
									<td><input type="text" name="contactCode" class="text-style-3"  style="width:200px;"/></td>
								</tr>
								<tr>
									<th scope="row">选用本地政策：</th>
									<td id="policy_init_id">
										<!--<select name="policyLocal" id="policyLocalId" onchange="local_policy_change(this)">
											<option value="">请选择政策</option>
											<option value="" id="policy_init_id"></option>
										</select><span class="font-orange">***</span>
									--></td>
								</tr>
								<tr>
									<th scope="row">本次订单总费用：</th>
									<td><span class="font-orange" id="totalfeeId">****元</span></td>
								</tr>
								<tr>
									<th scope="row">&nbsp;</th>
									<td><input type="button" class="btn-style4"  value="正式预约" onclick="order_save()"/>
										<input type="button" class="btn-style5"  value="取消预约" onclick="window.location.href='../index.jsp'"/>
									</td>
								</tr>
							</table>
							</form>
						</div>
						<div class="clr-line-2"></div>
					</div>
					<div class="clr-line"></div>
				</div>
				<!--account end -->
		</div>
		<!--main-col end -->
		<div class="clr"></div>
	</div>
	<!--container end --> 
	<!--footer start -->
	<div class="footer-panel">
		<p><a href="#">关于支付</a>|<a href="#">经销商体系</a>|<a href="#">体验计划</a>|<a href="#">门户网站</a>|<a href="#">诚征英才</a>|<a href="#">联系我们</a>|</p>
		<p>版权所有 (C) 2010-2012 <a href="www.186yc.com">澳海通www.186yc.com</a></p>
	</div>
	<!--footer end -->
</div>
</body>
</html>